package cn.com.joycode.nimble.opencv;

import cn.com.joycode.nimble.core.utils.ObjectMapperUtil;
import lombok.Data;
import org.bytedeco.opencv.opencv_core.Point;
import org.bytedeco.opencv.opencv_core.Rect;

@Data
public class MatchResult {

    private boolean match = false;
    private Point point = new Point(0, 0);
    private Rect rect = new Rect(0, 0, 0, 0);
    private Point center = new Point(0, 0);
    private double value = 0;
    private double threshold = 0;
    
    @Override
    public String toString() {

        return ObjectMapperUtil.toJsonString(this);
    }
}